package com.sfpay.coreplatform.account.service.inner.impl;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.sfpay.coreplatform.account.common.enums.DayChangeEnums.AccountingDay;
import com.sfpay.coreplatform.account.persistence.dao.IDayChangeDao;
import com.sfpay.coreplatform.account.service.inner.IDayChangeService;
import com.sfpay.coreplatform.account.valueobject.dto.DayChange;

/**
 * 
 * 
 * 日切接口实现类
 * 
 * 
 * <p>
 * 详细描述：
 * 
 * 
 * @author 313172 Kucha
 * 
 *         CreateDate: 2012-2-21
 */
@Service
public class DayChangeServiceImpl implements IDayChangeService {

	@Resource
	IDayChangeDao dayChangeDao;
	
	private static final Logger logger = LoggerFactory.getLogger(DayChangeServiceImpl.class);

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.sfpay.account.service.IDayChangeService#findDate(com.sfpay.account
	 * .enums.DayChangeEnums.AccountingDay)
	 */
	public DayChange findDate(AccountingDay accountingDay) {
		return dayChangeDao.queryDay(accountingDay.toString());
	}

	
}
